package com.dwsoft.xml;

import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author sqw
 * @version 1.0
 * @description TODO
 * @ClassName XmlNode
 * @Date 2020/8/7
 * @since jdk1.8
 */
@Data
public abstract class XmlNode<T>  {
    //序号
    String index;

    @XStreamAsAttribute
    boolean bold = false;

    @XStreamAsAttribute
    boolean italic = false;

    @XStreamAsAttribute
    String align="left";

    @XStreamAsAttribute
    String value="";

    @XStreamImplicit
    private List<XmlNode> xmlNodes=new ArrayList<>();
}
